<%@ page language="java" import="java.util.*,cn.ac.cintcm.dataconverge.util.Constants" pageEncoding="UTF-8"%>
<%
  //Map infoMap = request.getAttribute("alert");
  String info = (String)request.getAttribute("alert");
  if(null == info)
     info = "";
  String userName = (String)request.getAttribute("username");
  if(null == userName)
     userName = "";
  session.invalidate();
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
<HTML><HEAD><TITLE><%=Constants.APP_TITLE %></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<%@ include file="include.jsp"%>
<script language="JavaScript" src="<%=path %>/js/common.js"></script>
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
if(self != top) top.location.href = window.location.href;
//-->
function checkform()
{
if(document.LoginForm.UserName.value==""){
  alert("请输入用户名～！");
  document.all.UserName.focus();
  return false;
}
if(document.LoginForm.Password.value==""){
  alert("请输入密码～！");
  document.all.Password.focus();
  return false;
}
return true;
}
//xiaolin 2005-07-26 让用户一进入本页面的话，焦点自动在用户名输入框
function initHtmlPage(){
  document.all.UserName.focus();
}

//end;
</SCRIPT>

<STYLE type=text/css>BODY {
	MARGIN: 0px; BACKGROUND-COLOR: #4078BD
}
TABLE {
	FONT-SIZE: 12px; COLOR: #000000
}
</STYLE>

<META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD>
<BODY onload=initHtmlPage();>
<FORM name=LoginForm onsubmit="return checkform()" action=<%=path %>/login.htm?action=login method=post>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD vAlign=center align=middle>
      <DIV align=center><BR><BR><BR>
      <TABLE cellSpacing=0 cellPadding=0 width=687 border=0>
        <TBODY>
        <TR>
          <TD>
            <DIV align=left><IMG height=237 src="<%=imagePath%>login/enter.gif" 
            width=687></DIV></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=687 align=center border=0>
        <TBODY>
        <TR>
          <TD vAlign=center align=middle  background=<%=imagePath%>login/enter_pic2.jpg height=161>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD width="19%">&nbsp;</TD>
                <TD>&nbsp;</TD></TR>
              <TR>
                <TD height=35>
                  <DIV align=right>用户名：</DIV></TD>
                <TD>
                  <DIV align=left><INPUT name=UserName> </DIV></TD></TR>
              <TR>
                <TD height=35>
                  <DIV align=right>密　码：</DIV></TD>
                <TD>
                  <DIV align=left><INPUT type=password name=Password> 
              </DIV></TD></TR>
              <TR>
                <TD height=50>
                  <DIV align=left></DIV></TD>
                <TD vAlign=center>
                  <DIV align=left>
                  <INPUT type=image height=26 width=79 src="<%=imagePath%>login/enter_button1.jpg" border=0 name=imageField> 
                  <IMG style="CURSOR: hand"  onclick="openwindow('<%=basePath %>register.htm?action=registerView','800','700','');return false;" height=26 src="<%=imagePath%>login/enter_button2.jpg" width=79 border=0>
                  <!-- <IMG style="CURSOR: hand" onclick="window.open('/ujet/jet/userguide/userguide.htm');return false;" height=26 src="<%=imagePath%>login/help.gif" width=79 
                  border=0>-->&nbsp;</DIV></TD></TR></TBODY></TABLE>
                  <FONT  color=#ff0000><%=info%></FONT></TD></TR>
        <TR>
          <TD><IMG height=65 src="<%=imagePath%>login/enter_pic3.gif" 
            width=687></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></FORM>
<SCRIPT language=JavaScript type=text/JavaScript>
	document.all.UserName.value="<%=userName%>";
	document.all.Password.value="";
</SCRIPT>
</BODY></HTML>
